package com.ruoyi.system.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 审批对象 sys_approve
 * 
 * @author ruoyi
 * @date 2020-12-13
 */
public class SysApprove extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long approveId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long procurementDeclareId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long purchasingUnitId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userInfoId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long cgbuserInfoId;

    /** 采购计划 */
    @Excel(name = "采购计划")
    private Long purchasePlanId;

    /** 审批结果 */
    @Excel(name = "审批结果")
    private Integer approvalResult;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String approveSuggestion;

    /** 最终审批意见 */
    @Excel(name = "最终审批意见")
    private Integer yApproveResult;

    /** 最终审批意见 */
    @Excel(name = "最终审批意见")
    private String yApproveSuggestion;

    /** 采购办审批结果
     * 0:未审批
     * 1：同意，已审批
     * -1：不同意
     * -2：作废*/
    @Excel(name = "采购办审批结果")
    private Integer cgbApproveResult;

    /** 采购办审批意见 */
    @Excel(name = "采购办审批意见")
    private String cgbApproveSuggestion;

    /** 主管单位审批时间 */
    @Excel(name = "主管单位审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date yapproveTime;

    /** 采购办审批时间 */
    @Excel(name = "采购办审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String cgbApproveTime;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String attribute1;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String attribute2;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String attribute3;

    /** 退回原因 */
    @Excel(name = "退回原因")
    private String backReason;

    /** 是否修改 */
    @Excel(name = "是否修改")
    private Integer isUpdate;
    /**
     * 采购申报表对象
     */
    private SysProcurementdeclare sysProcurementdeclare;

    public void setApproveId(Long approveId) 
    {
        this.approveId = approveId;
    }

    public Long getApproveId() 
    {
        return approveId;
    }
    public void setProcurementDeclareId(Long procurementDeclareId) 
    {
        this.procurementDeclareId = procurementDeclareId;
    }

    public Long getProcurementDeclareId() 
    {
        return procurementDeclareId;
    }
    public void setPurchasingUnitId(Long purchasingUnitId) 
    {
        this.purchasingUnitId = purchasingUnitId;
    }

    public Long getPurchasingUnitId() 
    {
        return purchasingUnitId;
    }
    public void setUserInfoId(Long userInfoId) 
    {
        this.userInfoId = userInfoId;
    }

    public Long getUserInfoId() 
    {
        return userInfoId;
    }
    public void setCgbuserInfoId(Long cgbuserInfoId) 
    {
        this.cgbuserInfoId = cgbuserInfoId;
    }

    public Long getCgbuserInfoId() 
    {
        return cgbuserInfoId;
    }
    public void setPurchasePlanId(Long purchasePlanId) 
    {
        this.purchasePlanId = purchasePlanId;
    }

    public Long getPurchasePlanId() 
    {
        return purchasePlanId;
    }
    public void setApprovalResult(Integer approvalResult) 
    {
        this.approvalResult = approvalResult;
    }

    public Integer getApprovalResult() 
    {
        return approvalResult;
    }
    public void setApproveSuggestion(String approveSuggestion) 
    {
        this.approveSuggestion = approveSuggestion;
    }

    public String getApproveSuggestion() 
    {
        return approveSuggestion;
    }
    public void setyApproveResult(Integer yApproveResult) 
    {
        this.yApproveResult = yApproveResult;
    }

    public Integer getyApproveResult() 
    {
        return yApproveResult;
    }
    public void setyApproveSuggestion(String yApproveSuggestion) 
    {
        this.yApproveSuggestion = yApproveSuggestion;
    }

    public String getyApproveSuggestion() 
    {
        return yApproveSuggestion;
    }
    public void setCgbApproveResult(Integer cgbApproveResult) 
    {
        this.cgbApproveResult = cgbApproveResult;
    }

    public Integer getCgbApproveResult() 
    {
        return cgbApproveResult;
    }
    public void setCgbApproveSuggestion(String cgbApproveSuggestion) 
    {
        this.cgbApproveSuggestion = cgbApproveSuggestion;
    }

    public String getCgbApproveSuggestion() 
    {
        return cgbApproveSuggestion;
    }
    public void setYapproveTime(Date yapproveTime) 
    {
        this.yapproveTime = yapproveTime;
    }

    public Date getYapproveTime()
    {
        return yapproveTime;
    }
    public void setCgbApproveTime(String cgbApproveTime)
    {
        this.cgbApproveTime = cgbApproveTime;
    }

    public String getCgbApproveTime()
    {
        return cgbApproveTime;
    }
    public void setAttribute1(String attribute1) 
    {
        this.attribute1 = attribute1;
    }

    public String getAttribute1() 
    {
        return attribute1;
    }
    public void setAttribute2(String attribute2) 
    {
        this.attribute2 = attribute2;
    }

    public String getAttribute2() 
    {
        return attribute2;
    }
    public void setAttribute3(String attribute3) 
    {
        this.attribute3 = attribute3;
    }

    public String getAttribute3() 
    {
        return attribute3;
    }
    public void setBackReason(String backReason) 
    {
        this.backReason = backReason;
    }

    public String getBackReason() 
    {
        return backReason;
    }
    public void setIsUpdate(Integer isUpdate) 
    {
        this.isUpdate = isUpdate;
    }

    public Integer getIsUpdate() 
    {
        return isUpdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("approveId", getApproveId())
            .append("procurementDeclareId", getProcurementDeclareId())
            .append("purchasingUnitId", getPurchasingUnitId())
            .append("userInfoId", getUserInfoId())
            .append("cgbuserInfoId", getCgbuserInfoId())
            .append("purchasePlanId", getPurchasePlanId())
            .append("approvalResult", getApprovalResult())
            .append("approveSuggestion", getApproveSuggestion())
            .append("yApproveResult", getyApproveResult())
            .append("yApproveSuggestion", getyApproveSuggestion())
            .append("cgbApproveResult", getCgbApproveResult())
            .append("cgbApproveSuggestion", getCgbApproveSuggestion())
            .append("createTime", getCreateTime())
            .append("yapproveTime", getYapproveTime())
            .append("cgbApproveTime", getCgbApproveTime())
            .append("attribute1", getAttribute1())
            .append("attribute2", getAttribute2())
            .append("attribute3", getAttribute3())
            .append("backReason", getBackReason())
            .append("isUpdate", getIsUpdate())
                .append("sysProcurementdeclare", getSysProcurementdeclare())
            .toString();
    }

    public SysProcurementdeclare getSysProcurementdeclare() {
        return sysProcurementdeclare;
    }

    public void setSysProcurementdeclare(SysProcurementdeclare sysProcurementdeclare) {
        this.sysProcurementdeclare = sysProcurementdeclare;
    }
}
